#ifndef __WIND_SPEED_H
#define __WIND_SPEED_H

#include "stm32f10x.h"                  // Device header
#include "serial.h"
#include "crc.h"

#define WS_Address  0x66
#define WS_Baud     0x67
#define WS_Calibrat 0x6b

/***************************MODBUS-RTU*****************************
询问帧             地址  功能  寄存器地址  数据长度    CRC校验码
uint8_t camd[8] = {0x01, 0x03, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00};
*******************************************************************/

uint16_t WS_GetData(uint8_t address);   //获取风速
uint8_t WS_GetAddress(void);            //获取地址
uint8_t WS_SetAddress(uint8_t nowAddress, uint8_t newAddress);  //设置地址

#endif
